package com.aspose.cells;

class zvb extends zbcf {
   private com.aspose.cells.b.a.d.zm a;
   private zafh b;

   zvb(com.aspose.cells.b.a.d.zm var1, zafh var2) {
      this.a = var1;
      this.b = var2;
   }

   boolean a() throws Exception {
      zbcf var1 = zrc.a(this.a, this.b.f, this.b.k, this.b.l);
      byte[] var2 = new byte[512];
      com.aspose.cells.b.a.d.za var3 = new com.aspose.cells.b.a.d.za(new com.aspose.cells.b.a.d.zh(var2), Encoding.getUnicode());

      for(long var4 = 0L; (var4 & 4294967295L) < (long)this.b.f; ++var4) {
         this.a.b(zbcg.a(var1.b(var4), true));
         if (this.a.a(var2, 0, 512) <= 0) {
            return false;
         }

         var3.k().b(0L);

         for(int var6 = 0; var6 < 128; ++var6) {
            this.a(var3.r());
         }
      }

      return true;
   }

   void b() throws Exception {
      com.aspose.cells.b.a.d.zh var1 = super.c();
      com.aspose.cells.b.a.d.zb var2 = new com.aspose.cells.b.a.d.zb(this.a, Encoding.getUnicode());
      long var3 = zbcg.b(this.a.i(), true);
      int var5 = super.d();
      int var6 = zbom.a((long)var5, 128);
      var6 = zbom.a((long)(var5 + var6), 128);
      this.a.b(var1.m(), 0, (int)var1.h());

      int var7;
      for(var7 = 0; var7 < var6; ++var7) {
         var2.a(4294967293L);
      }

      var7 = zbom.a((long)(var5 + var6), 128);
      if (var7 > 109) {
         int var8 = zbom.a((long)(var7 - 109), 127);

         int var9;
         for(var9 = 0; var9 < var8; ++var9) {
            var2.a(4294967293L);
         }

         for(var9 = 0; var9 < var8; ++var9) {
            var2.a(4294967292L);
         }

         var7 = zbom.a((long)(var5 + var6 + var8), 128);
      }

      this.b.f = var7;
      zbcg.a(var2);
      zrc.a(this.a, var3, var7, this.b);
   }
}
